import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import qinakun from 'vite-plugin-qiankun'
// https://vite.dev/config/
export default defineConfig({
  plugins: [
    react(),
    qinakun('project', { useDevMode: true })
  ],
  server: {
    port: 8001,
    cors: true,
    headers: {
      'Access-Control-Allow-Origin': '*',
      'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
      'Access-Control-Allow-Headers': 'Content-Type, Authorization'
    }
  }
})
